package todo;

import com.google.appengine.api.users.UserServiceFactory;
import com.google.appengine.api.utils.SystemProperty;

public class Utils 
{
	public static void checkUser()
	{
		if (!UserServiceFactory.getUserService().getCurrentUser().getNickname().equals(System.getProperty("nickname")))
		{
			throw new RuntimeException("Fuck off motherfucker...");
		}
	}
	
	public static boolean isDevMode() 
	{
		return SystemProperty.environment.value() == SystemProperty.Environment.Value.Development;
	}
	
	public static boolean isNull(String s) {
		if (s == null || s.equals("")) 
		{
			return true;
		}
		return false;
	}
}
